ds_list_replace

语法:

ds_list_replace(id, pos, val);


参数 描述
id The id of the list to change.
pos The position to replace the value, where 0 corresponds to the very beginning of the list and the final position is ds_list_size(id)-1.
val The new value to replace the given value with.


返回: N/A(无返回值)


描述

This function will replace the value at the given position for another one.


例如:

ds_list_replace(n_list, 3, name);

The above code will replace the value stored at position 3 in the list for that stored in the variable "name".


上一页: DS Lists
下一页: ds_list_shuffle
© Copyright YoYo Games Ltd. 2018 All Rights Reserved